#photoresistor.py
import RPi.GPIO as GPIO
import PCF8591 as ADC
import time

makerobo_DO=17
GPIO.setmode(GPIO.BCM)

def makerobo_setup():
    ADC.setup(0x48)
    GPIO.setup(makerobo_DO,GPIO.IN)

def makerobo_loop():
    
    #makerobo_status=1
    '''
    while True:
        print('Photoresistor Value: ',ADC.read(1))
        time.sleep(0.2)
    '''
    return ADC.read(1)
'''
if __name__=='__main__':
    try:
        makerobo_setup()
        makerobo_loop()
    except KeyboardInterrupt:
        pass
'''